<!DOCTYPE html>
<html> 
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
    <link rel="stylesheet" type="text/css"  href="<?php echo asset_url(); ?>css/site.css"/>
    <link rel="stylesheet" type="text/css"  href="<?php echo asset_url(); ?>script/DataTables-1.10.5/media/css/jquery.dataTables.min.css"/>   
    <script type="text/javascript" src="<?php echo asset_url(); ?>script/jquery-1.11.2.min.js" ></script>
    <script type="text/javascript" src="<?php echo asset_url(); ?>script/DataTables-1.10.5/media/js/jquery.dataTables.min.js"></script>    
    <script type="text/javascript" src="<?php echo asset_url(); ?>script/Highcharts-4.1.4/js/highcharts.js"></script>   
	
    <script type="text/javascript">
	var baseURL = "<?php echo base_url() ?>";
	</script>
    <script type="text/javascript" src="<?php echo asset_url(); ?>script/site.js" ></script>
    
    <title><?php  
	if (isset($title)) {
		echo $title;    
	} else {
		echo 'EVE';
	} 
	?></title>
  </head>
  <body>
      <header>
          <div class="header">
              <span class="imageHeader">
                  <?php
					$nomEtudiant = $this->session->userdata('nomEtudiant');
                    if (empty($nomEtudiant))
                    {
                        echo "<a href='".base_url()."index.php/connexion/'><image src='".asset_url()."imgs/logoBordeaux1.jpg' /></a>";
                    }
                    else
                    {
                       echo "<a href='".base_url()."index.php/accueil/'><image src='".asset_url()."imgs/logoBordeaux1.jpg' /></a>";
                    }
					?></span>
              <span class="texteHeader">EVE - Evaluation E - Miage - Bordeaux I</span>   
          </div>
      </header>      
      <section>
          
         
      <?php
		if (!empty($nomEtudiant))
		{
			echo '<div class="bandeaujaune">';
			echo '	<span class="nomUtilisateur">Bienvenue '.$nomEtudiant."</span>";
			echo '	<span class="btDeco"><a href="javascript:confirmDeconnect();">D&eacute;connexion</a></span>';
			echo '</div>';
		}
		?> 
          </header> 
      <section>         
		
          
          
        <div class="section">
            
			<?= $contents ?>
			
			
            <?php if (isset($messageContents)) echo $messageContents; ?>
            
			<?php
			if (isset($hideMentionLink) && $hideMentionLink) {				
			} else {
			?>
			<div class="mentionLegale"><a href='<?php echo base_url() ?>index.php/mentionslegales/'>Mentions l&eacute;gales</a></div>
			<?php
			}
			?>
			
			<div class="clear"><br><br></div>
			
        </div>        
      </section>
  </body>
</html>
